package com.sky.service;

import com.sky.entity.AddressBook;
import java.util.List;

public interface AddressBookService {
    //条件查询地址
    List<AddressBook> list(AddressBook addressBook);

    //新增地址
    void save(AddressBook addressBook);

    //根据id查询
    AddressBook getById(Long id);

    //根据id修改地址
    void update(AddressBook addressBook);

    //设置默认地址
    void setDefault(AddressBook addressBook);

    //根据id删除地址
    void deleteById(Long id);

}
